package cn.cyl.sys.mapper;

import cn.cyl.sys.domain.Role;
import cn.cyl.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cyl
 * @since 2023-02-13
 */
public interface RoleMapper extends BaseMapper<Role> {

    void addMenusById(@Param("id") Long id, @Param("menus") List<Long> menus);

    void addPermissionsById(@Param("id") Long id, @Param("permissions") List<Long> permissions);

    void delMnusByRoleId(Long id);

    void delPermissionByRoleId(Long id);

    void delEmployyeByRoleId(Long id);
}
